import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const constantRoutes = [{
    path: '',
    component: require('@/views/index.vue').default,
    name: 'Index',
    meta: { title: 'ucoder' }
}]

export default new Router({
    mode: 'hash', // 去掉url中的#
    base:'./',
    scrollBehavior: () => ({
        y: 0
    }),
    routes: constantRoutes
})